import { request } from "./service";
//查询策略交易信息
export function tradeInfo(data) {
  return request({
    url: "user/strategy_trade_info/",
    method: "get",
    params: data
  });
}
//查询/筛选策略
export function strategyInfo(data) {
  return request({
    url: "user/strategy_info/",
    method: "get",
    params: data
  });
}

//计算策略盈亏
export function strategyCal(data) {
  return request({
    url: "user/strategy_info_cal/",
    method: "post",
    data: data
  });
}

//新增策略
export function addStrategy(data) {
  return request({
    url: "/user/strategy_info/",
    method: "post",
    data: data
  });
}
//查询策略期初盈亏信息
export function profitAndLossInfo(data) {
  return request({
    url: "user/strategy_bf_pl/",
    method: "get",
    params: data
  });
}
//编辑策略期初盈亏信息
export function editAndLossInfo(data) {
  return request({
    url: "/user/strategy_bf_pl/",
    method: "post",
    data: data
  });
}
//查询策略变更历史
export function alterHis(data) {
  return request({
    url: "user/strategy_alter_his/",
    method: "get",
    params: data
  });
}
//现货品名查询接口
export function spotCommodity(data) {
  return request({
    url: "user/strategy_commodity/",
    method: "get",
    params: data
  });
}

//期货品名查询接口
export function futureCommodity(data) {
  return request({
    url: "user/strategy_product/",
    method: "get",
    params: data
  });
}

//场外期权品名查询接口
export function instrumentInfo(data) {
  return request({
    url: "user/instrument_info/",
    method: "get",
    params: data
  });
}

//合约查询接口
export function instrument(data) {
  return request({
    url: "user/strategy_instrument/",
    method: "get",
    params: data
  });
}
//币种查询接口
export function currency(data) {
  return request({
    url: "user/strategy_currency/",
    method: "get",
    params: data
  });
}
//现货匹配查询基础信息
export function spotMatchBase(data) {
  return request({
    url: "user/spot_match_base/",
    method: "get",
    params: data
  });
}
//编辑现货匹配信息
export function editMatchBase(data) {
  return request({
    url: "/user/spot_match_base/",
    method: "post",
    data: data
  });
}
//查询策略信息
export function spotMatchStrategy(data) {
  return request({
    url: "user/spot_match_strategy/",
    method: "get",
    params: data
  });
}
//查询现货信息
export function spotMatchSpot(data) {
  return request({
    url: "user/spot_match_spot/",
    method: "get",
    params: data
  });
}
//查询敞口信息
export function spotExposureMatch(data) {
  return request({
    url: "user/spot_exposure_match/",
    method: "get",
    params: data
  });
}

//查询期货匹配基础信息
export function futuresMatchBase(data) {
  return request({
    url: "user/futures_match_base/",
    method: "get",
    params: data
  });
}
//查询期货匹配成交信息
export function futuresMatchDeal(data) {
  return request({
    url: "user/futures_match_deal/",
    method: "get",
    params: data
  });
}
//编辑期货匹配信息
export function editFuturesMatch(data) {
  return request({
    url: "/user/futures_match_base/",
    method: "post",
    data: data
  });
}
//期货匹配策略-查询柜台账户成交明细
export function realTraded(data) {
  return request({
    url: "/user/real_traded/",
    method: "post",
    data: data
  });
}
//期货匹配指令-查询子账户成交明细
export function logicTraded(data) {
  return request({
    url: "/user/logic_traded/",
    method: "post",
    data: data
  });
}
//查询策略/指令信息
export function futuresMatchSc(data) {
  return request({
    url: "user/futures_match_sc/",
    method: "get",
    params: data
  });
}
//期货指令基础信息查询
export function futuresCommand(data) {
  return request({
    url: "user/futures_command_info/",
    method: "get",
    params: data
  });
}

//期货指令交易信息查询
export function futuresTrade(data) {
  return request({
    url: "user/futures_command_trade/",
    method: "get",
    params: data
  });
}

//查询期权匹配基础信息
export function optionsMatchBase(data) {
  return request({
    url: "user/options_match_base/",
    method: "get",
    params: data
  });
}

//期权匹配编辑
export function editOptionsMatch(data) {
  return request({
    url: "/user/options_match_base/",
    method: "post",
    data: data
  });
}

//期权匹配编辑
export function optionsRealTraded(data) {
  return request({
    url: "/user/options_real_traded/",
    method: "post",
    data: data
  });
}

//查询期权匹配策略信息
export function optionsMatchStrategy(data) {
  return request({
    url: "user/options_match_strategy/",
    method: "get",
    params: data
  });
}

//查询期权匹配成交信息
export function optionsMatchDeal(data) {
  return request({
    url: "user/options_match_deal/",
    method: "get",
    params: data
  });
}

//审批相关
export function approval(data) {
  return request({
    url: "/user/work_order/",
    method: "post",
    data: data
  });
}

//查询期权行情
export function quotOptions(data) {
  return request({
    url: "user/quot_options/",
    method: "get",
    params: data
  });
}

//查询期货行情
export function quotFutures(data) {
  return request({
    url: "user/quot_futures/",
    method: "get",
    params: data
  });
}

//查询现货行情
export function quotSpot(data) {
  return request({
    url: "user/quot_spot/",
    method: "get",
    params: data
  });
}

//查询仓单数据
export function quotWare(data) {
  return request({
    url: "user/quot_ware/",
    method: "get",
    params: data
  });
}

//查询仓单数据
export function quotExchangeRate(data) {
  return request({
    url: "user/quot_exchange_rate/",
    method: "get",
    params: data
  });
}

//查询基差行情
export function quotBasis(data) {
  return request({
    url: "user/quot_basis/",
    method: "get",
    params: data
  });
}

//查询用户现货行情
export function quotUser(data) {
  return request({
    url: "user/quot_user_spot/",
    method: "get",
    params: data
  });
}

//查询常用功能
export function getCommon(data) {
  return request({
    url: "user/common_functions/",
    method: "get",
    params: data
  });
}

//新增常用功能
export function addCommon(data) {
  return request({
    url: "/user/common_functions/",
    method: "post",
    data: data
  });
}

//删除常用功能
export function delCommon(data) {
  return request({
    url: "/user/common_functions/",
    method: "post",
    data: data
  });
}

//查询业务中心
export function getBusiness(data) {
  return request({
    url: "user/top_business_center/",
    method: "get",
    params: data
  });
}

//查询业务中心模块
export function businessId(data) {
  return request({
    url: "user/top_business_id/",
    method: "get",
    params: data
  });
}

//新增业务中心
export function addBusiness(data) {
  return request({
    url: "/user/top_business_center/",
    method: "post",
    data: data
  });
}

//删除常用功能
export function delBusiness(data) {
  return request({
    url: "/user/top_business_center/",
    method: "post",
    data: data
  });
}

//我的消息
export function msgList(data) {
  return request({
    url: "user/station_msg_list/",
    method: "get",
    params: data
  });
}

//站内消息修改
export function modMsg(data) {
  return request({
    url: "user/station_msg/",
    method: "post",
    data: data
  });
}

//年度计划查询
export function annualPlan(data) {
  return request({
    url: "user/annual_plan/",
    method: "get",
    params: data
  });
}

//年度计划编辑
export function editAnnualPlan(data) {
  return request({
    url: "user/annual_plan/",
    method: "post",
    data: data
  });
}

//年度计划变更历史查询
export function annualPlanAlter(data) {
  return request({
    url: "user/annual_plan_alter/",
    method: "get",
    params: data
  });
}

